Skip to content

wenerme/coredns-ipin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

title description weight tags categories date repo home
ipin
*ipin* returns IP address and port based on you domain name.
10
plugin
ipin
plugin
external
2017-12-09T02:00:00+08:00

ipin

ipin returns IP address and port based on you domain name. Your IP address is returned in the answer section, currently only support ipv4, so A record only.

The optional port are included in the additional section as a SRV record.

._port.qname. 0 IN SRV 0 0 <port> .

Syntax

ipin {
  // if pattern not match, keep processing
  fallback
}

Examples

Start a server on the default port and load the ipin plugin.

. {
    ipin
}

When queried for "192-168-1-1.example.org A", CoreDNS will respond with:

;; QUESTION SECTION:
;192-168-1-1.example.org.	IN	A

;; ANSWER SECTION:
192-168-1-1.example.org. 0	IN	A	192.168.1.1

When queried for "127-0-0-1-8080.example.org A", CoreDNS will respond with:

;; QUESTION SECTION:
;127-0-0-1-8080.example.org.	IN	A

;; ANSWER SECTION:
127-0-0-1-8080.example.org. 0	IN	A	127.0.0.1

;; ADDITIONAL SECTION:
_port.127-0-0-1-8080.example.org. 0 IN	SRV	0 0 8080 .

About

CoreDNS plugin resolve the domain to ip in domain name

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages